<%@ page contentType="text/html; charset=utf-8"%>

<div id="allDataToExcelDiv" style="width: 100%;display: none;">



		<div style="margin-left: 20px;margin-top: 20px;">
			<span style="margin-top: 16px;">时间：</span><input type="text" id="allDataToExcelDate"  style="margin-top: 7px;">
			<select id="allDataToExcelDateType" style="margin-top: 7px;width: 60px;height: 28px;font-size: 14px;">
				<option value="按日">按日</option>
				<option value="按周">按周</option>
				<option selected="selected" value="按月">按月</option>
			</select>
			
			 	<input type="button" onclick="allDataToExcel()" style="width: 100px;" class="btn btn-primary m_r" value="导出报表"></input>
		</div>
		<div style="width: 100%;height: 500px;"></div>
	
	
</div>
<script>

	$(function() {
		$("#allDataToExcelDate").datepicker();
		$("#allDataToExcelDate").val(date2str(new Date(),"yyyy-MM-dd"));
	});

	function allDataToExcel(){
		
	
		
		var allDataToExcelDate = $("#allDataToExcelDate").val();
			var allDataToExcelDateType = $("#allDataToExcelDateType").val();
		
				if(gradeDate==null||gradeDate==""){
					return ;
				}
				
				showCommonDiv();
				$.post("exportReport", {"types":"allDataToExcel","date":allDataToExcelDate,"dateType":allDataToExcelDateType},
					   function(data){
					
					closeCommonDiv();
						if(data!="false"){
							
							
							window.location.href="exportReport?types=downFile&&fileName="+data; 
						}
					},"json");
		
		
	}


</script>






